package com.freesky.web.portal.reomte.fallback;

import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.portal.reomte.HomePanelContentRemote;
import com.freesky.web.portal.reomte.HomePanelRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class HomePanelRemoteFallback implements HomePanelRemote {
    private Logger logger = LoggerFactory.getLogger(HomePanelRemoteFallback.class);

    @Override
    public JSONResponse getRecommendPanel() {
        logger.error("前台获取首页推荐版块服务出故障了");
        return null;
    }

    @Override
    public JSONResponse getThanksPanel() {
        logger.error("前台获取首页捐赠版块服务出故障了");
        return null;
    }
}
